#include <bits/stdc++.h>

#define in read()
#define fi first
#define se second
#define pb push_back
#define rep(i, x, y) for(int i = (x); i <= (y); i++)
#define per(i, x, y) for(int i = (x); i >= (y); i--)

using namespace std;

typedef long long ll;
typedef double db;
typedef vector < int > vec;
typedef pair < int , int > pii;

int read() {
    int x = 0; bool f = 0; char ch = getchar(); while(!isdigit(ch)) f |= ch == '-',ch = getchar();
    while(isdigit(ch)) x = x * 10 + (ch ^ 48),ch = getchar(); return f ? -x : x;
}

void solve() {
	int a = in, b = in, c = in, m = in;
	int mx = a + b + c - 3;
	int d = max(a, b); d = max(d, c); if(d == a) a = 0; else if(d == b) b = 0; else c = 0;
	int mn = d - a - b - c - 1;
	puts(mn <= m && m <= mx ? "YES" : "NO");
}

int main() {
#ifndef ONLINE_JUDGE
    freopen("1.in","r",stdin);
#endif
    int T = in;
	while(T--) solve();
}
